using System.Collections.Generic;
using Library.Core.Model;
using NHibernate.Expression;

namespace Library.Core.Repositories
{
    public partial class ProductRepository : IProductRepository
    {
        /// <summary>
        /// Customs the find.
        /// </summary>
        /// <param name="values">The values.</param>
        /// <returns></returns>
        public virtual IList<Product> CustomFind(System.Collections.IList values)
        {
            var where = CreateDetachedCriteria().Add(Expression.In("Name",values));
            return FindAll(where);
        }
    }
}